package com.windgo.service;

import com.windgo.bean.MarketCart;
import com.windgo.bean.bo.*;
import com.windgo.bean.vo.WxCartCheckoutVO;
import com.windgo.bean.vo.WxCartIndexVO;
import com.windgo.bean.vo.WxOrderSubmitVo;

/**
 * @author doublec
 * @since 2022/10/14 09:53
 */

public interface WxCartService {
    WxCartIndexVO indexCart(Integer userId);

    int addCart(Integer userId, MarketCart marketCart);

    int queryGoodsNumberById(Integer goodsId);

    int fastAddCart(Integer userId, MarketCart marketCart);

    WxCartIndexVO deleteCart(Integer userId, CartDeleteBO cartDeleteBO);

    WxCartIndexVO checkedCart(Integer userId, CartCheckedBO cartCheckedBO, boolean b);

    int updateCart(Integer userId, CartUpdateBO cartUpdateBO);

    Short goodsCountCart(Integer userId);

    WxCartCheckoutVO checkoutCart(Integer userId, CartCheckoutBO cartCheckoutBO);

    //zx的下单
    WxOrderSubmitVo wxSubmit(WxOrderSubmitBo wxOrderSubmitBo);

}
